//package com.wood.life.controller;
//
//import com.night.common.entity.ResultVo;
//import com.night.common.entity.life.Ticket;
//import com.wood.life.service.TicketService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.redis.core.ListOperations;
//import org.springframework.data.redis.core.StringRedisTemplate;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
///**
// * author: dz
// * 2022-10-20-20:03
// */
//
//@RestController
//@RequestMapping("/ticket")
//public class TicketController {
//    @Autowired
//    TicketService ticketService;
//
//    @RequestMapping("/add")
//    public ResultVo add(@RequestBody Ticket ticket) {
//        ticketService.insert(ticket);
//        return ResultVo.SUCCESS;
//    }
//
//    @RequestMapping("/getTicket")
//    public ResultVo getTicket(String title) {
//        if (ticketService.getTicket(title)) {
//            return new ResultVo(200, "ok", "okTicket");
//        }
//        return new ResultVo(200, "ok", "noTicket");
//    }
//
//    @RequestMapping("/delete")
//    public void deleteById(Integer id) {
//        ticketService.deleteById(id);
//    }
//}
